package de.unistuttgart.iaaskpimonitoring.esper.eventmanagement;

import java.util.HashSet;
import java.util.Set;

public class EventUtils {
	public static Set<Integer> addInCorrelationSet(Integer corrSet1, Integer corrSet2){
		Set<Integer> toReturn = new HashSet<Integer>();
		toReturn.add(corrSet1);
		toReturn.add(corrSet2);
		return toReturn;
	}
	
	public static Set<Integer> addInCorrelationSet(Integer corrSet){
		Set<Integer> toReturn = new HashSet<Integer>();
		toReturn.add(corrSet);
		return toReturn;
	}
	
	public static Set<Integer> addInCorrelationSet(Set<Integer> corrSet1, Set<Integer> corrSet2){
		Set<Integer> toReturn = new HashSet<Integer>();
		toReturn.addAll(corrSet1);
		toReturn.addAll(corrSet2);
		return toReturn;
	}
	
}
